set
it /it1*it20/
out /out1*out3/
row /row1*row8/
col /col1*col6/
;


parameter

figure_FECGE_LUMP(*,*)
figure_BCGE_LUMP(*,*)
figure_HWC_LUMP(*,*)
figure_FECGE_TAUL(*,*)
figure_BCGE_TAUL(*,*)
figure_HWC_TAUL(*,*)
table_FECGE_LUMP_p_e40_LS1(*)
table_FECGE_LUMP_p_e40_LS2(*)
table_FECGE_LUMP_p_e40_C1(*)
table_FECGE_LUMP_p_e40_C2(*)
table_FECGE_LUMP_p_e40_Y1(*)
table_FECGE_LUMP_p_e40_Y2(*)
table_FECGE_TAUL_p_e40_LS1(*)
table_FECGE_TAUL_p_e40_LS2(*)
table_FECGE_TAUL_p_e40_C1(*)
table_FECGE_TAUL_p_e40_C2(*)
table_FECGE_TAUL_p_e40_Y1(*)
table_FECGE_TAUL_p_e40_Y2(*)
table_BCGE_LUMP_p_e40_LS1(*)
table_BCGE_LUMP_p_e40_LS2(*)
table_BCGE_LUMP_p_e40_C1(*)
table_BCGE_LUMP_p_e40_C2(*)
table_BCGE_LUMP_p_e40_Y1(*)
table_BCGE_LUMP_p_e40_Y2(*)
table_BCGE_LUMP_p_e40_ALT(*)
table_BCGE_TAUL_p_e40_LS1(*)
table_BCGE_TAUL_p_e40_LS2(*)
table_BCGE_TAUL_p_e40_C1(*)
table_BCGE_TAUL_p_e40_C2(*)
table_BCGE_TAUL_p_e40_Y1(*)
table_BCGE_TAUL_p_e40_Y2(*)
table_BCGE_TAUL_p_e40_ALT(*)
table_HWC_LUMP_p_e40_LS1(*)
table_HWC_LUMP_p_e40_LS2(*)
table_HWC_LUMP_p_e40_C1(*)
table_HWC_LUMP_p_e40_C2(*)
table_HWC_LUMP_p_e40_Y1(*)
table_HWC_LUMP_p_e40_Y2(*)
table_HWC_TAUL_p_e40_LS1(*)
table_HWC_TAUL_p_e40_LS2(*)
table_HWC_TAUL_p_e40_C1(*)
table_HWC_TAUL_p_e40_C2(*)
table_HWC_TAUL_p_e40_Y1(*)
table_HWC_TAUL_p_e40_Y2(*)
table_HWC_LUMP_p_e40_BP1(*)
table_HWC_LUMP_p_e40_BP2(*)
table_HWC_LUMP_p_e40_ME1(*)
table_HWC_LUMP_p_e40_ME2(*)
table_HWC_LUMP_p_e40_RP1(*)
table_HWC_LUMP_p_e40_RP2(*)
table_HWC_TAUL_p_e40_BP1(*)
table_HWC_TAUL_p_e40_BP2(*)
table_HWC_TAUL_p_e40_ME1(*)
table_HWC_TAUL_p_e40_ME2(*)
table_HWC_TAUL_p_e40_RP1(*)
table_HWC_TAUL_p_e40_RP2(*)


table4
table5

;

execute_loadpoint "figure_JAERE_FECGE_LUMP.gdx"     figure_FECGE_LUMP;
execute_loadpoint "figure_JAERE_BCGE_LUMP.gdx"     figure_BCGE_LUMP;
execute_loadpoint "figure_JAERE_HWC_LUMP.gdx"     figure_HWC_LUMP;
execute_loadpoint "figure_JAERE_FECGE_TAUL.gdx"     figure_FECGE_TAUL;
execute_loadpoint "figure_JAERE_BCGE_TAUL.gdx"     figure_BCGE_TAUL;
execute_loadpoint "figure_JAERE_HWC_TAUL.gdx"     figure_HWC_TAUL;
execute_loadpoint "table_JAERE_FECGE_LUMP_p_e40_LS1.gdx"     table_FECGE_LUMP_p_e40_LS1
execute_loadpoint "table_JAERE_FECGE_LUMP_p_e40_LS2.gdx"     table_FECGE_LUMP_p_e40_LS2
execute_loadpoint "table_JAERE_FECGE_LUMP_p_e40_C1.gdx"     table_FECGE_LUMP_p_e40_C1
execute_loadpoint "table_JAERE_FECGE_LUMP_p_e40_C2.gdx"     table_FECGE_LUMP_p_e40_C2
execute_loadpoint "table_JAERE_FECGE_LUMP_p_e40_Y1.gdx"     table_FECGE_LUMP_p_e40_Y1
execute_loadpoint "table_JAERE_FECGE_LUMP_p_e40_Y2.gdx"     table_FECGE_LUMP_p_e40_Y2
execute_loadpoint "table_JAERE_FECGE_TAUL_p_e40_LS1.gdx"     table_FECGE_TAUL_p_e40_LS1
execute_loadpoint "table_JAERE_FECGE_TAUL_p_e40_LS2.gdx"     table_FECGE_TAUL_p_e40_LS2
execute_loadpoint "table_JAERE_FECGE_TAUL_p_e40_C1.gdx"     table_FECGE_TAUL_p_e40_C1
execute_loadpoint "table_JAERE_FECGE_TAUL_p_e40_C2.gdx"     table_FECGE_TAUL_p_e40_C2
execute_loadpoint "table_JAERE_FECGE_TAUL_p_e40_Y1.gdx"     table_FECGE_TAUL_p_e40_Y1
execute_loadpoint "table_JAERE_FECGE_TAUL_p_e40_Y2.gdx"     table_FECGE_TAUL_p_e40_Y2
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_LS1.gdx"     table_BCGE_LUMP_p_e40_LS1
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_LS2.gdx"     table_BCGE_LUMP_p_e40_LS2
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_C1.gdx"     table_BCGE_LUMP_p_e40_C1
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_C2.gdx"     table_BCGE_LUMP_p_e40_C2
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_Y1.gdx"     table_BCGE_LUMP_p_e40_Y1
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_Y2.gdx"     table_BCGE_LUMP_p_e40_Y2
execute_loadpoint "table_JAERE_BCGE_LUMP_p_e40_ALT.gdx"     table_BCGE_LUMP_p_e40_ALT
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_LS1.gdx"     table_BCGE_TAUL_p_e40_LS1
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_LS2.gdx"     table_BCGE_TAUL_p_e40_LS2
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_C1.gdx"     table_BCGE_TAUL_p_e40_C1
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_C2.gdx"     table_BCGE_TAUL_p_e40_C2
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_Y1.gdx"     table_BCGE_TAUL_p_e40_Y1
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_Y2.gdx"     table_BCGE_TAUL_p_e40_Y2
execute_loadpoint "table_JAERE_BCGE_TAUL_p_e40_ALT.gdx"     table_BCGE_TAUL_p_e40_ALT
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_LS1.gdx"     table_HWC_LUMP_p_e40_LS1
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_LS2.gdx"     table_HWC_LUMP_p_e40_LS2
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_C1.gdx"     table_HWC_LUMP_p_e40_C1
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_C2.gdx"     table_HWC_LUMP_p_e40_C2
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_Y1.gdx"     table_HWC_LUMP_p_e40_Y1
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_Y2.gdx"     table_HWC_LUMP_p_e40_Y2
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_LS1.gdx"     table_HWC_TAUL_p_e40_LS1
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_LS2.gdx"     table_HWC_TAUL_p_e40_LS2
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_C1.gdx"     table_HWC_TAUL_p_e40_C1
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_C2.gdx"     table_HWC_TAUL_p_e40_C2
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_Y1.gdx"     table_HWC_TAUL_p_e40_Y1
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_Y2.gdx"     table_HWC_TAUL_p_e40_Y2
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_BP1.gdx"     table_HWC_LUMP_p_e40_BP1
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_BP2.gdx"     table_HWC_LUMP_p_e40_BP2
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_ME1.gdx"     table_HWC_LUMP_p_e40_ME1
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_ME2.gdx"     table_HWC_LUMP_p_e40_ME2
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_RP1.gdx"     table_HWC_LUMP_p_e40_RP1
execute_loadpoint "table_JAERE_HWC_LUMP_p_e40_RP2.gdx"     table_HWC_LUMP_p_e40_RP2
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_BP1.gdx"     table_HWC_TAUL_p_e40_BP1
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_BP2.gdx"     table_HWC_TAUL_p_e40_BP2
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_ME1.gdx"     table_HWC_TAUL_p_e40_ME1
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_ME2.gdx"     table_HWC_TAUL_p_e40_ME2
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_RP1.gdx"     table_HWC_TAUL_p_e40_RP1
execute_loadpoint "table_JAERE_HWC_TAUL_p_e40_RP2.gdx"     table_HWC_TAUL_p_e40_RP2
;




table4('row1','col1') = figure_FECGE_LUMP('out3','it8');
table4('row1','col2') = figure_BCGE_LUMP('out3','it8');
table4('row1','col3') = figure_HWC_LUMP('out3','it8');
table4('row1','col4') = figure_FECGE_TAUL('out3','it8');
table4('row1','col5') = figure_BCGE_TAUL('out3','it8');
table4('row1','col6') = figure_HWC_TAUL('out3','it8');

table4('row2','col1') = table_FECGE_LUMP_p_e40_LS1('out1');
table4('row3','col1') = table_FECGE_LUMP_p_e40_LS2('out1');
table4('row4','col1') = table_FECGE_LUMP_p_e40_C1('out1');
table4('row5','col1') = table_FECGE_LUMP_p_e40_C2('out1');
table4('row6','col1') = table_FECGE_LUMP_p_e40_Y1('out1');
table4('row7','col1') = table_FECGE_LUMP_p_e40_Y2('out1');
table4('row2','col4') = table_FECGE_TAUL_p_e40_LS1('out1');
table4('row3','col4') = table_FECGE_TAUL_p_e40_LS2('out1');
table4('row4','col4') = table_FECGE_TAUL_p_e40_C1('out1');
table4('row5','col4') = table_FECGE_TAUL_p_e40_C2('out1');
table4('row6','col4') = table_FECGE_TAUL_p_e40_Y1('out1');
table4('row7','col4') = table_FECGE_TAUL_p_e40_Y2('out1');

table4('row2','col2') = table_BCGE_LUMP_p_e40_LS1('out1');
table4('row3','col2') = table_BCGE_LUMP_p_e40_LS2('out1');
table4('row4','col2') = table_BCGE_LUMP_p_e40_C1('out1');
table4('row5','col2') = table_BCGE_LUMP_p_e40_C2('out1');
table4('row6','col2') = table_BCGE_LUMP_p_e40_Y1('out1');
table4('row7','col2') = table_BCGE_LUMP_p_e40_Y2('out1');
table4('row2','col5') = table_BCGE_TAUL_p_e40_LS1('out1');
table4('row3','col5') = table_BCGE_TAUL_p_e40_LS2('out1');
table4('row4','col5') = table_BCGE_TAUL_p_e40_C1('out1');
table4('row5','col5') = table_BCGE_TAUL_p_e40_C2('out1');
table4('row6','col5') = table_BCGE_TAUL_p_e40_Y1('out1');
table4('row7','col5') = table_BCGE_TAUL_p_e40_Y2('out1');

table4('row2','col3') = table_HWC_LUMP_p_e40_LS1('out1');
table4('row3','col3') = table_HWC_LUMP_p_e40_LS2('out1');
table4('row4','col3') = table_HWC_LUMP_p_e40_C1('out1');
table4('row5','col3') = table_HWC_LUMP_p_e40_C2('out1');
table4('row6','col3') = table_HWC_LUMP_p_e40_Y1('out1');
table4('row7','col3') = table_HWC_LUMP_p_e40_Y2('out1');
table4('row2','col6') = table_HWC_TAUL_p_e40_LS1('out1');
table4('row3','col6') = table_HWC_TAUL_p_e40_LS2('out1');
table4('row4','col6') = table_HWC_TAUL_p_e40_C1('out1');
table4('row5','col6') = table_HWC_TAUL_p_e40_C2('out1');
table4('row6','col6') = table_HWC_TAUL_p_e40_Y1('out1');
table4('row7','col6') = table_HWC_TAUL_p_e40_Y2('out1');

TABLE4(row,col) = table4(row,col)*100;


table5('row1','col1') = figure_FECGE_LUMP('out3','it8');
table5('row2','col1') = figure_FECGE_LUMP('out3','it8');
table5('row3','col1') = figure_FECGE_LUMP('out3','it8');
table5('row4','col1') = figure_FECGE_LUMP('out3','it8');
table5('row5','col1') = figure_FECGE_LUMP('out3','it8');
table5('row6','col1') = figure_FECGE_LUMP('out3','it8');
table5('row7','col1') = figure_FECGE_LUMP('out3','it8');
table5('row8','col1') = figure_FECGE_LUMP('out3','it8');
table5('row1','col4') = figure_FECGE_TAUL('out3','it8');
table5('row2','col4') = figure_FECGE_TAUL('out3','it8');
table5('row3','col4') = figure_FECGE_TAUL('out3','it8');
table5('row4','col4') = figure_FECGE_TAUL('out3','it8');
table5('row5','col4') = figure_FECGE_TAUL('out3','it8');
table5('row6','col4') = figure_FECGE_TAUL('out3','it8');
table5('row7','col4') = figure_FECGE_TAUL('out3','it8');
table5('row8','col4') = figure_FECGE_TAUL('out3','it8');

table5('row1','col2') = figure_BCGE_LUMP('out3','it8');
table5('row2','col2') = figure_BCGE_LUMP('out3','it8');
table5('row3','col2') = figure_BCGE_LUMP('out3','it8');
table5('row4','col2') = figure_BCGE_LUMP('out3','it8');
table5('row5','col2') = figure_BCGE_LUMP('out3','it8');
table5('row6','col2') = figure_BCGE_LUMP('out3','it8');
table5('row7','col2') = figure_BCGE_LUMP('out3','it8');
table5('row8','col2') = table_BCGE_LUMP_p_e40_ALT('out1');
table5('row1','col5') = figure_BCGE_TAUL('out3','it8');
table5('row2','col5') = figure_BCGE_TAUL('out3','it8');
table5('row3','col5') = figure_BCGE_TAUL('out3','it8');
table5('row4','col5') = figure_BCGE_TAUL('out3','it8');
table5('row5','col5') = figure_BCGE_TAUL('out3','it8');
table5('row6','col5') = figure_BCGE_TAUL('out3','it8');
table5('row7','col5') = figure_BCGE_TAUL('out3','it8');
table5('row8','col5') = table_BCGE_TAUL_p_e40_ALT('out1');

table5('row1','col3') = figure_HWC_LUMP('out3','it8');
table5('row2','col3') = table_HWC_LUMP_p_e40_BP1('out1');
table5('row3','col3') = table_HWC_LUMP_p_e40_BP2('out1');
table5('row4','col3') = table_HWC_LUMP_p_e40_ME1('out1');
table5('row5','col3') = table_HWC_LUMP_p_e40_ME2('out1');
table5('row6','col3') = table_HWC_LUMP_p_e40_RP1('out1');
table5('row7','col3') = table_HWC_LUMP_p_e40_RP2('out1');
table5('row8','col3') = figure_HWC_LUMP('out3','it8');

table5('row1','col6') = figure_HWC_TAUL('out3','it8');
table5('row2','col6') = table_HWC_TAUL_p_e40_BP1('out1');
table5('row3','col6') = table_HWC_TAUL_p_e40_BP2('out1');
table5('row4','col6') = table_HWC_TAUL_p_e40_ME1('out1');
table5('row5','col6') = table_HWC_TAUL_p_e40_ME2('out1');
table5('row6','col6') = table_HWC_TAUL_p_e40_RP1('out1');
table5('row7','col6') = table_HWC_TAUL_p_e40_RP2('out1');
table5('row8','col6') = figure_HWC_TAUL('out3','it8');

TABLE5(row,col) = table5(row,col)*100;

display
table4
table5
;




